package org.tea.inventory.domain.tea;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.tea.inventory.db.domain.Storage;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 供应商文件对象 supplier_file
 * 
 * @author dongxb
 * @date 2025-04-14
 */
@ApiModel(value = "供应商文件对象")
@Data
@NoArgsConstructor
public class SupplierFile implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 主键自动递增 */
    private Long id;

    /** 文件id */
    @ApiModelProperty(value = "文件id")
    private String fileId;

    @ApiModelProperty(value = "文件信息")
    private List<Storage> files;

    /** 文件名称 */
    @ApiModelProperty(value = "文件名称")
    private String uploadName;

    /** 文件类型 */
    @ApiModelProperty(value = "文件类型")
    private String uploadType;

    /** 鏂囦欢鍦板潃 */
    @ApiModelProperty(value = "鏂囦欢鍦板潃")
    private String uploadPath;

    /** 璧勮川ID */
    @ApiModelProperty(value = "璧勮川ID")
    private String qualifiedId;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "添加时间")
    private Date addTime;

    /** 除删标记0正常1删除 */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setFileId(String fileId) 
    {
        this.fileId = fileId;
    }

    public String getFileId() 
    {
        return fileId;
    }

    public void setUploadName(String uploadName) 
    {
        this.uploadName = uploadName;
    }

    public String getUploadName() 
    {
        return uploadName;
    }

    public void setUploadType(String uploadType) 
    {
        this.uploadType = uploadType;
    }

    public String getUploadType() 
    {
        return uploadType;
    }

    public void setUploadPath(String uploadPath) 
    {
        this.uploadPath = uploadPath;
    }

    public String getUploadPath() 
    {
        return uploadPath;
    }

    public void setQualifiedId(String qualifiedId) 
    {
        this.qualifiedId = qualifiedId;
    }

    public String getQualifiedId() 
    {
        return qualifiedId;
    }

    public void setAddTime(Date addTime) 
    {
        this.addTime = addTime;
    }

    public Date getAddTime() 
    {
        return addTime;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fileId", getFileId())
            .append("uploadName", getUploadName())
            .append("uploadType", getUploadType())
            .append("uploadPath", getUploadPath())
            .append("qualifiedId", getQualifiedId())
            .append("addTime", getAddTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
